package chapter11;

import java.util.Scanner;

public class Day7 {
    public static void main(String[] args) {
       Scanner input = new Scanner(System.in);
        int count = 0;
        int []arr = new int[15];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int)(Math.random()*100);
        }
        System.out.println("请输入你要查询的数：");
        int num = input.nextInt();
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]==num){
                count++;
            }
        }
        System.out.println("这个数有："+count);
    }
}
